const getters = {
    getLeftMenu(state){
        let menus = state.menu.menus.length>0?JSON.parse(state.menu.menus):[]
        return menus.filter(val=>val.postion=="left")
    },
    getTopMenu(state){
        let menus = state.menu.menus.length>0?JSON.parse(state.menu.menus):[]
        return menus.filter(val=>val.postion=="top")
    }
}
export default getters